﻿using System.ComponentModel;
using System.Windows.Input;
#if SILVERLIGHT
using System.Windows;
using System.Windows.Controls;
#else
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
#endif

namespace Microsoft.PlayerFramework
{
    /// <summary>
    /// A control that is used to kick off the loading of media.
    /// </summary>
    public class LoaderView : Control
    {
        /// <summary>
        /// Creates a new instance of the control
        /// </summary>
        public LoaderView()
        {
            this.DefaultStyleKey = typeof(LoaderView);
        }

        #region Command
        /// <summary>
        /// Identifies the Command dependency property.
        /// </summary>
        public static readonly DependencyProperty CommandProperty = DependencyProperty.Register("Command", typeof(ICommand), typeof(LoaderView), null);
        /// <summary>
        /// Gets or sets if the command used for databinding with user interactive features.
        /// You can set this property to create custom behaviors from plugins or your application.
        /// </summary>
        public ICommand Command
        {
            get { return (ICommand)GetValue(CommandProperty); }
            set { SetValue(CommandProperty, value); }
        }
        #endregion

    }
}
